package pojo;

import java.util.Collection;
import java.util.Objects;

public class TbPhonePriceDetail {
    private Integer phonePriceDetailId;
    private Double phoneDetailPrice;
    private Integer phoneId;
    private Integer phoneDetailId;
    private TbPhone tbPhoneByPhoneId;
    private Collection<TbRecordDetail> tbRecordDetailsByPhonePriceDetailId;

    public Integer getPhonePriceDetailId() {
        return phonePriceDetailId;
    }

    public void setPhonePriceDetailId(Integer phonePriceDetailId) {
        this.phonePriceDetailId = phonePriceDetailId;
    }

    public Double getPhoneDetailPrice() {
        return phoneDetailPrice;
    }

    public void setPhoneDetailPrice(Double phoneDetailPrice) {
        this.phoneDetailPrice = phoneDetailPrice;
    }

    public Integer getPhoneId() {
        return phoneId;
    }

    public void setPhoneId(Integer phoneId) {
        this.phoneId = phoneId;
    }

    public Integer getPhoneDetailId() {
        return phoneDetailId;
    }

    public void setPhoneDetailId(Integer phoneDetailId) {
        this.phoneDetailId = phoneDetailId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        TbPhonePriceDetail that = (TbPhonePriceDetail) o;
        return Objects.equals(phonePriceDetailId, that.phonePriceDetailId) &&
                Objects.equals(phoneDetailPrice, that.phoneDetailPrice) &&
                Objects.equals(phoneId, that.phoneId) &&
                Objects.equals(phoneDetailId, that.phoneDetailId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(phonePriceDetailId, phoneDetailPrice, phoneId, phoneDetailId);
    }

    public TbPhone getTbPhoneByPhoneId() {
        return tbPhoneByPhoneId;
    }

    public void setTbPhoneByPhoneId(TbPhone tbPhoneByPhoneId) {
        this.tbPhoneByPhoneId = tbPhoneByPhoneId;
    }

    public Collection<TbRecordDetail> getTbRecordDetailsByPhonePriceDetailId() {
        return tbRecordDetailsByPhonePriceDetailId;
    }

    public void setTbRecordDetailsByPhonePriceDetailId(Collection<TbRecordDetail> tbRecordDetailsByPhonePriceDetailId) {
        this.tbRecordDetailsByPhonePriceDetailId = tbRecordDetailsByPhonePriceDetailId;
    }
}
